
<div>
    <div style="margin-bottom: 20px;">
        <span style="font-size: 30px">运行异常日志收集与监控</span>
        <span class="navbar-version" style="color:red">{{partition}}</span>
        <span class="navbar-version" ng-show="!winvisible" ng-click="win.open()">[选择分区]</span>
    </div>
    <div kendo-window="win" k-title="'选择分区'"
         k-width="740" k-height="220" k-visible="false"
         k-on-open="winvisible = true" k-on-close="winvisible = false">

        <div class="partition_box">
            <div  class="partition_section">
                <div class="partition_title">
                    <a href=""  ng-click="selectShow(0)">全部</a>
                </div>
                <div class="partition_content_w">
                </div>
            </div>
            <div  class="partition_section">
                <div ng-repeat="item in partitionSource">
                    <div class="partition_title">
                        <a href="">{{item.fname}}</a>
                    </div>
                    <div class="partition_content_w">
                        <div class="partition_link" ng-repeat="k in item.partition">
                            <a href="" ng-click="selectShow(k)">{{k.cname}}</a>
                        </div>
                    </div>
                    <br>
                </div>
                <br>
            </div>
        </div>
    </div>
</div>
<div class="query">查询条件</div>

<div class=" textboxes">
    <div class="form-inline group-margin">
        <div class="form-group">
            <label>大类:</label>
            <select kendo-drop-down-list ng-model="param.kind" class="myinput">
                <option value="">全部</option>
                <option value="frame">框架</option>
                <option value="BAT">批处理</option>
                <option value="TEL">电文service</option>
                <option value="SVC">普通service</option>
                <!--<option value="5">ERROR</option>-->
                <!--<option value="6">CRITICAL</option>-->
            </select>
        </div>
            <div class="form-group">
                <label>SVC:</label>
                <input kendo-auto-complete ng-trim="true" ng-model="param.svc" class="myinput">
            </div>
        <div class="form-group">
            <label>类型:</label>
            <select kendo-drop-down-list ng-model="param.type" class="myinput">
                <option value="SQL">SQL</option>
                <option value="SVC">SVC</option>
                <!--<option value="3">INFO</option>-->
                <!--<option value="4">WARN</option>-->
                <!--<option value="5">ERROR</option>-->
                <!--<option value="6">CRITICAL</option>-->
            </select>
        </div>
    </div>
    <div class="form-inline group-margin">
        <div class="form-group">
            <label>耗时:</label>
            <select kendo-drop-down-list ng-model="param.time" class="myinput">
                <option value="10">TOP10</option>
                <option value="500">大于500ms</option>
                <option value="1000">大于1s</option>
                <option value="5000">大于5s</option>
                <option value="10000">大于10s</option>
                <option value="30000">大于30s</option>
            </select>
        </div>
        <div class="form-group">
            <label>时间:</label>
            <input kendo-date-time-picker k-ng-model="param.startTime" k-format = "'yyyy-MM-dd HH:mm:ss'"/>
        </div>
        <div class="form-group">
            <label>至:</label>
            <input kendo-date-time-picker k-ng-model="param.endTime" k-format = "'yyyy-MM-dd HH:mm:ss'"/>
        </div>
        <div class="form-group">
            <kendo-button class="k-primary" ng-click="query()" style="float: right">查询</kendo-button>
        </div>
    </div>
</div>
<div class="table-responsive">
    <div class="result">结果集</div>

    <div kendo-grid="sqlGrid"
         k-options="sqlGridOptions"
         k-on-change="sqlGridRowClick(data, dataItem, columns)"
         k-on-edit="sqlGridRowEdit(kendoEvent)">
        <div k-detail-template>
            <ul class="list-group">
                <li class="list-group-item">logmsg：{{dataItem.logmsg}}</li>
                <li class="list-group-item">partition：{{dataItem.partition}}</li>
                <li class="list-group-item">timestamp： {{dataItem.timestamp}}</li>
                <li class="list-group-item">pid：{{dataItem.pid}}</li>
                <li class="list-group-item">file_name：{{dataItem.file_name}}</li>
                <li class="list-group-item">priority：{{dataItem.priority}}</li>
                <li class="list-group-item">category：{{dataItem.category}}</li>
                <li class="list-group-item">interval：{{dataItem.interval}}</li>
                <li class="list-group-item">pid：{{dataItem.pid}}</li>
                <li class="list-group-item">ip：{{dataItem.ip}}</li>
                <li class="list-group-item">source： {{dataItem.source}}</li>
                <li class="list-group-item">username：{{dataItem.username}}</li>
                <li class="list-group-item">formname：{{dataItem.formname}}</li>
                <li class="list-group-item">svc：{{dataItem.svc}}</li>
            </ul>
        </div>
    </div>
</div>
</div>

